# mode url匹配模式:exact精确匹配  fuzz模糊匹配
# filedPath : 值路径,如果写\ 将会将返回体全部替换  暂时只支持最多两层  如code,data.msg
# value : 要替换的值
# "/custodyws/ws/fixin/custody/decodeCgbCallbackUrl",

URL_LIST = [
    # 模拟提现页
    # {
    #     "url": "/custodyws/ws/fixin/custody/decodeCgbCallbackUrl",
    #     "mode": "exact",
    #     "action": {
    #         "data.success": False,
    #         "data.errorMsg": "提现模拟错误",
    #     },
    #
    # },

    # 模拟充值页--外层错误
    # {
    #     "url": "/custodyws/ws/fixin/custody/decodeCgbCallbackUrl",
    #     "mode": "exact",
    #     "action": {
    #         "succeed": False,
    #         "msg": "充值错误-外层",
    #     },
    #
    # },

    # 模拟充值页--内层错误(普通错误)
    # {
    #     "url": "/custodyws/ws/fixin/custody/decodeCgbCallbackUrl",
    #     "mode": "exact",
    #     "action": {
    #         "data.success": False,
    #         "data.errorMsg": "充值错误-内层",
    #     },
    #
    # },
    # 模拟充值页--内层错误
    # {
    #     "url": "/custodyws/ws/fixin/custody/decodeCgbCallbackUrl",
    #     "mode": "exact",
    #     "action": {
    #         "data.success": True,
    #         "data.errorMsg": "充值错误-内层",
    #     },
    #
    # },
    # {
    #     "url": "/custodyws/ws/fixin/custody/investor/queryTradeResult",
    #     "mode": "exact",
    #     "action": {
    #         "data.status": "FAIL",
    #         "data.errorMsg": "充值错误-内层-queryTradeResult失败",
    #     },
    #
    # },

    # 模拟充值页--内层错误(result.code === '000003')
    # {
    #     "url": "/custodyws/ws/fixin/custody/decodeCgbCallbackUrl",
    #     "mode": "exact",
    #     "action": {
    #         "data.success": True,
    #     },
    #
    # },
    # {
    #     "url": "/custodyws/ws/fixin/custody/investor/queryTradeResult",
    #     "mode": "exact",
    #     "action": {
    #         "data.status": "FAIL",
    #         "code": "000003",
    #     },
    #
    # },

    # 模拟充值页-- 跳转已提交页 即待确认页
    {
        "url": "/custodyws/ws/fixin/custody/decodeCgbCallbackUrl",
        "mode": "exact",
        "action": {
            "data.success": True,
        },

    },
    {
        "url": "/custodyws/ws/fixin/custody/investor/queryTradeResult",
        "mode": "exact",
        "action": {
            "data.status": "XXXX",
        },

    },

    # 模拟提现页 失败
    # {
    #     "url": "/custodyws/ws/fixin/custody/decodeCgbCallbackUrl",
    #     "mode": "exact",
    #     "action": {
    #         "data.success": False,
    #         "msg": "mock提现页失败",
    #     },
    #
    # },

    # 模拟 查询到账时间 延迟 模拟 失败
    # {
    #     "url": "/custodyws/ws/fixin/custody/investor/queryArrivalTime",
    #     "mode": "exact",
    #     "delay":20,
    # },

    # 不显示公告--体现
    # {
    #     "url": "/operationws/ws/advert/v1/notice",
    #     "mode": "exact",
    #     "action": {
    #         "data": "null",
    #     },
    # },

    # 弄掉优惠券
    # {
    #     "url": "/operationws/ws/coupon/v1/find/best",
    #     "mode": "exact",
    #     "action": {
    #         "data": "null",
    #     },
    # },

]
